'use server';
import { db } from '@/lib/db';

export const getTimelines = async () => {
    const today = new Date();
    // console.log(today);
    const timelines = await db.tb_timeline.findMany({
        where: {
            tl_date: {
                gte: today
            }
        },
        orderBy: [{ tl_date: 'asc' }]
    });
    return timelines;
};
